package com.gdut.thread;

public class ThreadDemo {
    public static void main(String[] args)  {
        MyRunnable myRunnable = new MyRunnable();
        Thread t1 = new Thread(myRunnable, "tank");
        Thread t2 = new Thread(myRunnable, "飞机");
        Thread t3 = new Thread(myRunnable, "mtc");
        t3.setDaemon(true);
        t1.start();
        t2.start();
        t3.start();
        System.out.println(Runtime.getRuntime().availableProcessors());
    }
}
